class Student {
    private String name; //姓名
    private int age; //年龄
//    public void show() {
//        System.out.println("姓名：" + this.name + " 年龄：" + this.age);
//    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
}
public class Test {
    public static void main(String[] args) {
        Student student = new Student();
        student.setName("小王");
        student.setAge(20);
//        student.show();
    }
}
